from xml.etree.ElementInclude import include


from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
import logging

# logger = logging.getLogger('django_logs')
from django.http import HttpResponse

#
# def test_log(request):
#     # 调用日至期记录日志
#     logger.info('我是一条日志信息')
#     return HttpResponse('日志记录生成')


urlpatterns = [
    path('admin/', admin.site.urls),
    path('',include(('hopublog.urls', 'hopublog'), namespace='hopublog')),
    path('', include(('home.urls', 'home'), namespace='home')),

]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
